package com.micro.modual.model.tree;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/7/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegionTreeDTO extends TreeNode{

    /**
     * 区域id
     */
    private Long id;

    private String regionCode;


//    private String parentCode;

    /**
     * 地区名称
     */
    private String regionName;


    /**
     * 层级
     */
    private Integer regionLevel;


    /**
     * 排序号,1:省级,2:地市,3:区县
     */
    private Integer regionSort;


    /**
     * 显示,1:显示,0:隐藏
     */
    private Byte regionStatus;


    /**
     * 备注
     */
    private String regionRemark;


    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",shape= JsonFormat.Shape.STRING,timezone="GMT+8")
    private Date createTime;


    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",shape= JsonFormat.Shape.STRING,timezone="GMT+8")
    private Date updateTime;

    private boolean hasChildren;
}
